package com.java复习.jdbc.游戏.demo3;

import java.util.Scanner;

/**
 * 测试类
 */
public class Test {

    public static void main(String[] args) {
        Play play = new Play();//实例化玩游戏
        while(true){
            Scanner scanner  = new Scanner(System.in);
            System.out.println("######################\n" +
                    "####欢迎来到XXX游戏#####\n" +
                    "##【输入1、登录  2、注册】#\n" +
                    "######################");
            int num = scanner.nextInt();
            switch (num){
                case 1:play.login();break;
                case 2:play.register();break;
                default:
                    System.out.println("请输入正确的序号");
            }
        }
    }
}
